# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
#作者：cacho_37967865
#博客：https://blog.csdn.net/sinat_37967865
#文件：get_time.py
#日期：2019-10-16
#备注：统计某个程序运行的时间
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
import time



def run_function():
    no = []
    for i in range(10000):
        no.append(i)
    print(no)


def get_time():
    sTime = time.time()
    run_function()
    eTime = time.time()
    s = eTime - sTime
    print('花费的时间为：%.2f秒' % (s))


if __name__ == '__main__':
    get_time()
